home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
gfx
/
conv
/
mpeg_v1_2a.readme
< prev
next >
Wrap
Text File
|
1993-09-07
|
2KB
|
76 lines
Short: Stanford MPEG encoder/decoder v1.2 alpha
Type: gfx/conv
Uploader: s924723@minyos.xx.rmit.oz.au
Author: Andy C. Hung (Unix), ported to Amiga by Son H. Le
Requirements (at least): 68000 CPU, 2 meg and lotsa harddisk space!
This is the port of Stanford's MPEG utility version 1.2 alpha.
It can encode/decode a mpeg file (.mpg) to its separate Y,U and V
components. Combined with cyuv2ppm (another utility by Andy C. Hung) you
can convert these component files into a standard PPM file or alternative
make a mpeg anim file using ppm2cyuv (note: you'll also need ilbmtoppm).
The PPM file can be manipulated using all sorts of PPM utilities to
alter/fix/enhance the picture and ultimately convert into an displayable
filetype (IFF,GIF,etc).
Sample usage:
Decoding short.mpg anim
SHELL:> mpeg -d -s short.mpeg short
START>SEQUENCE
Transmission rate (bps): 6553200
Image Dimensions: 352x240 MPEG Block Dimensions: 352x240
GOP>FirstFrame: 0
START>Frame: 0
First decoder buffer bits = -256
Intraframe Decode: 0
END>Frame: 0
[snip..snip]
END>Frame: 6
END>SEQUENCE
Will output files short1.Y, short1.U, short1.V .. short6.Y, short6.U and
short6.V. Now you can run "cyuv2ppm" (remember to supply the picture width
and height if they're not the default NTSC: 352x240) through them to
convert them to PPM files and finally "ppmtoilbm" to convert the PPM files
to IFFs.
Or alternatively, if you've got >wb2.04 you can use my Yuv2Iff script
which automatically takes you through these steps.
usage: Yuv2Iff base from to width height
where base is the base filename. eg. in above example base=short
from is the start frame
to is the finish frame (converts "from" to "to" inclusively)
width is the picture frame width \ mpeg will tell you these
height is the picture frame height / at the beginning.
So to continue the "short" decoding example,
SHELL:> Yuv2Iff short 1 6 352 240
Processing... short1.[YUV]
input size: 352x240 output size: 352x240
ppmtoilbm: computing colormap...
ppmtoilbm: too many colors - proceeding to write a HAM6 file
ppmtoilbm: if you want a non-HAM file, try doing a 'ppmquant 32'
short1.Y Deleted
short1.U Deleted
short1.V Deleted
[snip..snip]
Done!
Now you can use MkAnim by John Bickers to convert it to an ANIM7 file.
If you think ppmtoilbm is too slow, try Wasp by Steven Reiz. However,
when used on some mpegs, Wasp didn't make the background black. :(
Bye!
Son Le